<div class="form full">

	<?php
	$form = $this->beginWidget('CActiveForm',
		array(
		'id'=>'translation-form',
		'enableAjaxValidation'=>true,
		));
	?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'language');
		?>
		<?php
		$properties = array(
			'model'=>$model,
			'attribute'=>'dialect',
			'source'=>array(
				'English',
				'Japanese',
				'Chinese',
			),
			'htmlOptions'=>array('placeholder'=>'Language'),
			'options'=>array('showAnim'=>'fold'),
		);
		$this->widget(
			'zii.widgets.jui.CJuiAutoComplete', $properties
		);
		?>
		<?php echo $form->error($model, 'dialect');
		?>
	</div>

	<div class="row buttons">
		<?php
		echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->